package com.atguigu.gulimall.gulimallauth.feign;

import com.atguigu.common.entity.SocialUser;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import vo.MemberLoginVo;
import vo.RegisterVo;

@FeignClient("gulimall-member")
public interface MemberFeignService {
    @PostMapping("/gulimallmember/member/regist")
    R regist(@RequestBody RegisterVo registerVo);

    @PostMapping("/gulimallmember/member/login")
    R login(@RequestBody MemberLoginVo memberLoginVo);

    @PostMapping("/gulimallmember/member/social/login")
    R socialLogin(@RequestBody SocialUser socialUser);
}
